package com.server.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户认证方式表
 * </p>
 *
 * @author
 * @since 2020-04-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UcenterUserOauth对象", description="用户认证方式表")
public class UcenterUserOauth implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "user_oauth_id", type = IdType.AUTO)
    private Integer userOauthId;

    @ApiModelProperty(value = "帐号编号")
    private Integer userId;

    @ApiModelProperty(value = "第三方ID")
    private String openId;

    @ApiModelProperty(value = "union_id")
    private String unionId;

    @ApiModelProperty(value = "绑定状态(0:解绑,1:绑定)")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;

    @ApiModelProperty(value = "是否启用")
    private Integer enable;

    @ApiModelProperty(value = "逻辑删除字段0删除1为删除")
    private Integer deleted;


    @ApiModelProperty(value = "版本")
    @Version
    @JsonIgnore
    private Integer version;


}
